import request from '@/utils/request'

// 查询商业伙伴关系列表
export function listBpRelation(query) {
  return request({
    url: '/basic/bpRelation/list',
    method: 'get',
    params: query
  })
}

// 查询商业伙伴关系详细
export function getBpRelation(bpRelationType) {
  return request({
    url: '/basic/bpRelation/' + bpRelationType,
    method: 'get'
  })
}

// 新增商业伙伴关系
export function addBpRelation(data) {
  return request({
    url: '/basic/bpRelation',
    method: 'post',
    data: data
  })
}

// 修改商业伙伴关系
export function updateBpRelation(data) {
  return request({
    url: '/basic/bpRelation',
    method: 'put',
    data: data
  })
}

// 删除商业伙伴关系
export function delBpRelation(bpRelationType) {
  return request({
    url: '/basic/bpRelation/' + bpRelationType,
    method: 'delete'
  })
}
